#ifndef __LOG_H__
#define __LOG_H__
#include <func.h>
#include "user.h"
//日志级别
#define ERROR 1
#define INFO 2
#define MESSAGE 3

//日志记录
#define LOGX(flag, msg) logWrite(flag, msg, __FILE__, __func__, __LINE__)

//API
void logWrite(int flag, const char* msg, const char* file, const char* function, int line);
void logClientConnection(user_info_t *user);
void logClientOperation(user_info_t *user, const char* operation);
#endif
